package com.blogspot.action3flash.editor.model
{
	import com.adobe.cairngorm.model.IModelLocator;
	

	[Bindable]
	public class MarkingModelLocator implements IModelLocator
	{
		private static var instance:MarkingModelLocator;
		
		public function MarkingModelLocator(enforcer:SingletonEnforcer) {
 
        if (enforcer == null) {
                throw new Error( "You Can Only Have One ModelLocator" );
            }
        }
         
        // Returns the Single Instance
        public static function getInstance() : MarkingModelLocator {
                
            if (instance == null) {
                instance = new MarkingModelLocator( new SingletonEnforcer );
            }
            return instance;
        }
        
        
        
        private var mBookData:XML;
        
        public function set bookData(vData:XML):void
        {
        	mBookData=vData;
        }
        
        
        public function get bookData():XML
        {
        	return mBookData;
        }
        
        
        
        
        

	}
}


class SingletonEnforcer{}